#ifndef _UFO_FRAMEWORK_TIMER_H_
#define _UFO_FRAMEWORK_TIMER_H_

#include "handle.h"
#include "view.h"

DECLARE_HANDLE(UFO_Timer);

typedef int (*TIMERPROC)(UFO_Timer timer, int deltaTime, void *userdata);

UFO_Timer ufoTimerCreate(UFO_View view, int microsecond, int repeatTime, TIMERPROC proc, void *userdata);

int ufoTimerDelete(UFO_Timer timer);

#endif